package gphoto.dao;

import gphoto.bo.repertoire.EmplacementTrier;
import gphoto.bo.repertoire.Repertoire;

import java.sql.SQLException;
import java.util.List;

public interface RepertoireDAO {

	public void viderCache();
	
	public void chargerCache();
	
	public Repertoire getRepertoire(int emplId, int parentId, String name) throws SQLException;

	public Repertoire getRepertoire(int repId) throws SQLException;
	
	public Repertoire addRepertoire(Repertoire r) throws SQLException;

	public List<Repertoire> getSousRepertoires(EmplacementTrier emplId) throws SQLException;

	public List<Repertoire> getSousRepertoires(Repertoire rep) throws SQLException;

	public void delete(Repertoire rep) throws SQLException;

	public Repertoire renommerRepertoire(Repertoire rep, String nvNomRep) throws SQLException;

	public Repertoire deplacerRepertoireDans(Repertoire rep, EmplacementTrier empl) throws SQLException;

	public Repertoire deplacerRepertoireDans(Repertoire repS, Repertoire repD) throws SQLException;
}
